//
//  BBVipcustomerTableViewCell.m
//  BearSiX
//
//  Created by 潘宇 on 16/3/29.
//  Copyright © 2016年 Tom. All rights reserved.
//

#import "BBVipcustomerTableViewCell.h"

@implementation BBVipcustomerTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //灰色背景
        self.backview=[[UIView alloc]init];
        self.backview.backgroundColor = [UIColor colorWithHexString:@"f9f9f9"];
        self.backview.frame = CGRectMake(0,77,WINSIZEWIDTH,193);
        [self addSubview:self.backview];
        //头像
        self.headImage=[[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 50, 50)];
        self.headImage.image=[UIImage imageNamed:@"2" ];
        self.headImage.layer.cornerRadius = 25;
        self.headImage.layer.masksToBounds = YES;
        [self addSubview:self.headImage];
        //名字
        self.nameLabel = [[UILabel alloc]init];
        self.nameLabel.text = @"宗文君、孟巧云";
        self.nameLabel.textColor = [UIColor blackColor];
        self.nameLabel.font =[UIFont fontWithName:@"Helvetica" size:17.f] ;
        self.nameLabel.frame = CGRectMake(CGRectGetMaxX(self.headImage.frame)+10, 20, 200, 15);
        [self addSubview:self.nameLabel];
        //时间
        self.dateLabel = [[UILabel alloc]init];
        self.dateLabel.text = @"2015-12-14 10:00";
        self.dateLabel.font = [UIFont fontWithName:@"Helvetica" size:13.f] ;
        self.dateLabel.textColor = [UIColor lightGrayColor];
        self.dateLabel.frame = CGRectMake(self.nameLabel.frame.origin.x, 50,120, 10);
        [self addSubview:self.dateLabel];
        //类型
        self.typeLabel=[[UILabel alloc]init];
        self.typeLabel.text = @"婚纱";
        self.typeLabel.font = [UIFont fontWithName:@"Helvetica" size:17.f] ;
        self.typeLabel.textColor = [UIColor blackColor];
        self.typeLabel.frame = CGRectMake(WINSIZEWIDTH-60,20,50, 15);
        [self addSubview:self.typeLabel];
        //卡内积分
        self.pointLabel=[[UILabel alloc]init];
        self.pointLabel.text = @"卡内积分:";
        self.pointLabel.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.pointLabel.textColor = [UIColor lightGrayColor];
        self.pointLabel.frame = CGRectMake(30,80,80, 25);
        if (WINSIZEHEIGHT==568) {
            self.pointLabel.frame = CGRectMake(15,80,80, 25);
        }
        [self addSubview:self.pointLabel];
        //数值
        self.pointLabel2=[[UILabel alloc]init];
        self.pointLabel2.text = @"1,000.00";
        self.pointLabel2.font = [UIFont fontWithName:@"Helvetica" size:19.f] ;
        self.pointLabel2.textColor = [UIColor colorWithHexString:@"ff5368"];
        self.pointLabel2.frame = CGRectMake(100,78,100, 25);
        if (WINSIZEHEIGHT==568) {
            self.pointLabel2.frame = CGRectMake(85,80,80, 25);
            self.pointLabel2.font = [UIFont fontWithName:@"Helvetica" size:17.f] ;
        }
        [self addSubview:self.pointLabel2];
        //卡内金额
        self.moneyLabel=[[UILabel alloc]init];
        self.moneyLabel.text = @"卡内金额:";
        self.moneyLabel.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.moneyLabel.textColor = [UIColor lightGrayColor];
        self.moneyLabel.frame = CGRectMake(WINSIZEWIDTH/2+25,80,100, 25);
        if (WINSIZEHEIGHT==568) {
            self.moneyLabel.frame = CGRectMake(WINSIZEWIDTH/2+10,80,100, 25);
        }
        [self addSubview:self.moneyLabel];
        //数值
        self.moneyLabel2=[[UILabel alloc]init];
        self.moneyLabel2.text = @"￥1,000.00";
        self.moneyLabel2.font = [UIFont fontWithName:@"Helvetica" size:19.f] ;
        self.moneyLabel2.textColor = [UIColor colorWithHexString:@"ff5368"];
        self.moneyLabel2.frame = CGRectMake(WINSIZEWIDTH/2+95,78,100, 25);
        if (WINSIZEHEIGHT==568) {
            self.moneyLabel2.frame = CGRectMake(WINSIZEWIDTH/2+75,80,100, 25);
            self.moneyLabel2.font = [UIFont fontWithName:@"Helvetica" size:17.f] ;
        }
        [self addSubview:self.moneyLabel2];
        //横线
        self.hengview=[[UIView alloc]init];
        self.hengview.backgroundColor = [UIColor colorWithHexString:@"f0f0f0"];
        self.hengview.frame = CGRectMake(0,110,WINSIZEWIDTH,1);
        [self addSubview:self.hengview];
        //订单编号
        self.ordernumberLabel=[[UILabel alloc]init];
        self.ordernumberLabel.text = @"订单编号:";
        self.ordernumberLabel.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.ordernumberLabel.textColor = [UIColor lightGrayColor];
        self.ordernumberLabel.frame = CGRectMake(30,130,80, 25);
        if (WINSIZEHEIGHT==568) {
            self.ordernumberLabel.frame = CGRectMake(15,130,80, 25);
        }
        [self addSubview:self.ordernumberLabel];
        //数值
        self.ordernumberLabel2=[[UILabel alloc]init];
        self.ordernumberLabel2.text = @"A22210";
        self.ordernumberLabel2.font = [UIFont fontWithName:@"Helvetica" size:17.f] ;
        self.ordernumberLabel2.textColor = [UIColor colorWithHexString:@"575757"];
        self.ordernumberLabel2.frame = CGRectMake(100,130,80, 25);
        if (WINSIZEHEIGHT==568) {
            self.ordernumberLabel2.frame = CGRectMake(85,130,80, 25);
        }
        [self addSubview:self.ordernumberLabel2];
        //会员卡号
        self.VIPcardLabel=[[UILabel alloc]init];
        self.VIPcardLabel.text = @"会员卡号:";
        self.VIPcardLabel.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.VIPcardLabel.textColor = [UIColor lightGrayColor];
        self.VIPcardLabel.frame = CGRectMake(30,165,80, 25);
        if (WINSIZEHEIGHT==568) {
            self.VIPcardLabel.frame = CGRectMake(15,165,80, 25);
        }
        [self addSubview:self.VIPcardLabel];
        //数值
        self.ordernumberLabel2=[[UILabel alloc]init];
        self.ordernumberLabel2.text = @"18812345689";
        self.ordernumberLabel2.font = [UIFont fontWithName:@"Helvetica" size:17.f] ;
        self.ordernumberLabel2.textColor = [UIColor colorWithHexString:@"575757"];
        self.ordernumberLabel2.frame = CGRectMake(100,165,150, 25);
        if (WINSIZEHEIGHT==568) {
            self.ordernumberLabel2.frame = CGRectMake(85,165,150, 25);
        }
        [self addSubview:self.ordernumberLabel2];
        //会员类型
        self.VIPtypeLabel=[[UILabel alloc]init];
        self.VIPtypeLabel.text = @"会员类型:";
        self.VIPtypeLabel.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.VIPtypeLabel.textColor = [UIColor lightGrayColor];
        self.VIPtypeLabel.frame = CGRectMake(30,200,80, 25);
        if (WINSIZEHEIGHT==568) {
            self.VIPtypeLabel.frame = CGRectMake(15,200,80, 25);
        }
        [self addSubview:self.VIPtypeLabel];
        //数值
        self.VIPtypeLabel2=[[UILabel alloc]init];
        self.VIPtypeLabel2.text = @"金卡";
        self.VIPtypeLabel2.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.VIPtypeLabel2.textColor = [UIColor colorWithHexString:@"575757"];
        self.VIPtypeLabel2.frame = CGRectMake(100,200,100, 25);
        if (WINSIZEHEIGHT==568) {
            self.VIPtypeLabel2.frame = CGRectMake(85,200,100, 25);
        }
        [self addSubview:self.VIPtypeLabel2];
        //会员折扣
        self.VIPdiscountLabel=[[UILabel alloc]init];
        self.VIPdiscountLabel.text = @"会员折扣:";
        self.VIPdiscountLabel.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.VIPdiscountLabel.textColor = [UIColor lightGrayColor];
        self.VIPdiscountLabel.frame = CGRectMake(30,235,80, 25);
        if (WINSIZEHEIGHT==568) {
            self.VIPdiscountLabel.frame = CGRectMake(15,235,80, 25);
        }
        [self addSubview:self.VIPdiscountLabel];
        //数值
        self.VIPdiscountLabel2=[[UILabel alloc]init];
        self.VIPdiscountLabel2.text = @"八折";
        self.VIPdiscountLabel2.font = [UIFont fontWithName:@"Helvetica" size:15.f] ;
        self.VIPdiscountLabel2.textColor = [UIColor colorWithHexString:@"575757"];
        self.VIPdiscountLabel2.frame = CGRectMake(100,235,100, 25);
        if (WINSIZEHEIGHT==568) {
            self.VIPdiscountLabel2.frame = CGRectMake(85,235,100, 25);
        }
        [self addSubview:self.VIPdiscountLabel2];
        //数值
        self.PriceLabel2=[[UILabel alloc]init];
        self.PriceLabel2.text = @"￥8,800.00";
        self.PriceLabel2.font = [UIFont fontWithName:@"Helvetica" size:16.f] ;
        self.PriceLabel2.textColor = [UIColor colorWithHexString:@"757575"];
        self.PriceLabel2.frame = CGRectMake(WINSIZEWIDTH/2+110,130,100, 25);
        if (WINSIZEHEIGHT==568) {
            self.PriceLabel2.frame = CGRectMake(WINSIZEWIDTH/2+70,130,80, 25);
        }
        [self addSubview:self.PriceLabel2];
        //总价
        self.PriceLabel=[[UILabel alloc]init];
        self.PriceLabel.text = @"总价";
        self.PriceLabel.font = [UIFont fontWithName:@"Helvetica" size:13.f] ;
        self.PriceLabel.textColor = [UIColor lightGrayColor];
        self.PriceLabel.frame = CGRectMake(WINSIZEWIDTH-55,145,50, 25);
        if (WINSIZEHEIGHT==568) {
            self.PriceLabel.frame = CGRectMake(WINSIZEWIDTH-40,145,50, 25);
        }
        [self addSubview:self.PriceLabel];
        //数值
        self.arrearsmoneyLabel2=[[UILabel alloc]init];
        self.arrearsmoneyLabel2.text = @"￥800.0";
        self.arrearsmoneyLabel2.font = [UIFont fontWithName:@"Helvetica" size:16.f] ;
        self.arrearsmoneyLabel2.textColor = [UIColor colorWithHexString:@"ff5368"];
        self.arrearsmoneyLabel2.frame = CGRectMake(WINSIZEWIDTH/2+120,230,100, 25);
        if (WINSIZEHEIGHT==568) {
            self.arrearsmoneyLabel2.frame = CGRectMake(WINSIZEWIDTH/2+85,230,80, 25);
        }
        [self addSubview:self.arrearsmoneyLabel2];
        //欠费
        self.arrearsmoneyLabel=[[UILabel alloc]init];
        self.arrearsmoneyLabel.text = @"欠费";
        self.arrearsmoneyLabel.font = [UIFont fontWithName:@"Helvetica" size:13.f] ;
        self.arrearsmoneyLabel.textColor = [UIColor lightGrayColor];
        self.arrearsmoneyLabel.frame = CGRectMake(WINSIZEWIDTH-55,245,50, 25);
        if (WINSIZEHEIGHT==568) {
            self.arrearsmoneyLabel.frame = CGRectMake(WINSIZEWIDTH-40,245,50, 25);
        }
        [self addSubview:self.arrearsmoneyLabel];
        //竖线
        self.shuview=[[UIView alloc]init];
        self.shuview.backgroundColor = [UIColor colorWithHexString:@"f0f0f0"];
        self.shuview.frame = CGRectMake(WINSIZEWIDTH/2,77,1,34);
        [self addSubview:self.shuview];
        


        
        
        
        
        
    }
    return self;
}
@end
